import request from '@/utils/request'

// 查询方案管理列表
export function listSolutions(query) {
  return request({
    url: '/solution/solutions/list',
    method: 'get',
    params: query
  })
}

// 查询方案管理详细
export function getSolutions(id) {
  return request({
    url: '/solution/solutions/' + id,
    method: 'get'
  })
}

// 新增方案管理
export function addSolutions(data) {
  return request({
    url: '/solution/solutions',
    method: 'post',
    data: data
  })
}

// 修改方案管理
export function updateSolutions(data) {
  return request({
    url: '/solution/solutions',
    method: 'put',
    data: data
  })
}

// 删除方案管理
export function delSolutions(id) {
  return request({
    url: '/solution/solutions/' + id,
    method: 'delete'
  })
}
